package com.unisound.tracelog.server.ui.model.request;

import com.unisound.tracelog.common.model.pojo.PageCondition;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.StringUtils;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class MainTraceLogSearchRequest extends PageCondition {
    private Long traceId;
    private String serverName;
    private String name;
    private Integer resultFlag;

    public void setServerName(String serverName) {
        this.serverName = StringUtils.trimToNull(serverName);
    }

    public void setName(String name) {
        this.name = StringUtils.trimToNull(name);
    }
}
